| Name | CVE-2022-28738 |
| Description | A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1009958 |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ruby2.3 | source | (unstable) | (not affected) | |||
| ruby2.5 | source | (unstable) | (not affected) | |||
| ruby2.7 | source | (unstable) | (not affected) | |||
| ruby3.0 | source | (unstable) | 3.0.4-1 | 1009958 |
- ruby2.7 <not-affected> (Vulnerable code not present)
- ruby2.5 <not-affected> (Vulnerable code not present)
- ruby2.3 <not-affected> (Vulnerable code not present)
https://github.com/ruby/ruby/commit/052ec6d2585c3ace95671013d336f5543624ef3d (v3_0_4)
https://github.com/ruby/ruby/commit/73f45e5e96ccc13a131f7c0122cf8600ce5b930f (v3_1_2)
https://www.ruby-lang.org/en/news/2022/04/12/double-free-in-regexp-compilation-cve-2022-28738/